>>> obj = mocker.replace("time.time")
>>> obj()
>>> mocker.result(123)

>>> mocker.replay()

>>> from time import time
>>> time()
123
